package com.ppp.poi.bean.base;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;

public class WorkThreadPool {

  private static Executor executor = new ThreadPoolExecutor(10, 10, 30, TimeUnit.MINUTES, new ArrayBlockingQueue<>(200));

  private static Executor sendExecutor = new ThreadPoolExecutor(10, 10, 30, TimeUnit.MINUTES, new ArrayBlockingQueue<>(200));

  public static Executor get() {
    return executor;
  }

  public static Executor getSender() {
    return sendExecutor;
  }


}
